<form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmitDialog" style="padding-top:0;">
<div class="widget am-cf">
<div class="widget-head am-cf">
    <div class="widget-title  am-fl">产品资料</div>
    <div class="widget-function am-fr">
    
    <button type="submit" class="am-btn am-btn-primary" id="submitBtn"><i class="am-icon-check"></i> 保存</button>
    <button type="button" class="am-btn am-btn-default" id="cennelBtn" ><i class="am-icon-ban"></i> 取消</button>
    </div>
</div>
<div class="widget-body  am-fr">
<input type="hidden" name="Id" id="Id" value="{{.m.Id}}">
<input type="hidden" name="TypeId" id="Typeid" value="{{.m.TypeId}}">
<input type="hidden" name="BrandName" id="BrandName" value="{{.m.BrandName}}">
<div class="row am-cf">
      <div class="am-form-group am-u-sm-6">
          <label class="am-u-sm-2 am-form-label">品牌</label>
          <div class="am-u-sm-10">
                <select required data-am-selected="{searchBox: 1,maxHeight:'300px',btnWidth: '100%'}" placeholder="请选择所属品牌" name="BrandId" id="bId">
                    <option value=""></option>
                    {{range $k, $v := .brand}}
                        <option value="{{$v.Id}}">{{$v.BrandName}}</option>
                    {{end}}
               </select>
           </div> 
      </div>
      <div class="am-form-group am-u-sm-6">
          <label class="am-u-sm-2 am-form-label">品名</label>
          <div class="am-u-sm-10">
               <input name="Name" type="text" id="Name"  placeholder="长度不超过80" maxlength="80" value="{{.m.Name}}" />
           </div> 
      </div>
</div>
<div class="row am-cf">
    <div class="am-form-group am-u-sm-6">
          <label class="am-u-sm-2 am-form-label">编号</label>
          <div class="am-u-sm-10">
               <input name="Number" type="text" id="Identifier"  placeholder="长度不超过120" maxlength="120" value="{{.m.Number}}" required/>
           </div> 
      </div>
     <div class="am-form-group am-u-sm-6">
          <label class="am-u-sm-2 am-form-label">条码</label>
          <div class="am-u-sm-10">
               <input name="BarCode" type="text" id="BarCode"  placeholder="长度不超过120" maxlength="120" value="{{.m.BarCode}}" />
           </div> 
      </div>
</div>